package sostats.core.query;

import java.util.ArrayList;
import java.util.List;

import com.google.common.base.Joiner;

class Select extends Clause{
	private List<String> columns;
	public Select(SqlContext context){
		super(context,"SELECT");
		this.columns = new ArrayList<String>();
	}
	public Select column(String column){
		columns.add(column);
		return this;
	}
	public From from(){
		super.context
			.append(Joiner.on(',').join(columns));
		return new From(super.context);
	}
	@Override
	void endClause() {
		// TODO Auto-generated method stub
		
	}
}
